package  com.pcbly.web.business.user;
/**
* @author carl.song
* Copyright (c) 2010 Lightsoft, International.
* All rights reserved.
*
*/

import com.pcbly.web.bean.user.UserRelationBean;
import com.pcbly.web.business.BaseService;
import com.pcbly.web.components.hibernate.support.Page;

public interface UserRelationService extends BaseService<UserRelationBean> {

	UserRelationBean getUserRelationBeanById(String id) throws Exception;
	
	void removeUserRelationBeanById(String id) throws Exception;
	
	void removeUserRelationBeanByIds(String ids) throws Exception;
	
	UserRelationBean saveUserRelationBean(UserRelationBean user) throws Exception;
	
	UserRelationBean updateUserRelationBean(UserRelationBean user) throws Exception;
	
	Page<UserRelationBean>  findUserRelationBeanByCond(UserRelationBean bean,
			Page<UserRelationBean> page, String orderByName, boolean asc)
			throws Exception;
	void saveUserRelationBeanExt(String sql) throws Exception;

	String findUserRelationBeanExtCreate(String tableName) throws Exception;

	String findUserRelationBeanExtEdit(String tableName, String id)
			throws Exception;

	String findUserRelationBeanExtView(String tableName, String id)
			throws Exception;

	boolean getHasUserRelationBeanExtData(String tableName, String id)
			throws Exception;
}